10/11/2018

Goals:
FinalAnalysisFinalFinal15.R only to find out that you have been editing FinalAnalysisFinal17.RWhat are products?
set.seed(n) for reproducibility!)Goals:
Caveats:
.rda or .RData files, or .eps or .jpeg figures)Rough organizational sketch:
"The fundamental unit of work in Git is a commit. A commit takes a snapshot of your code at a specified point in time. Using a Git commit is like using anchors and other protection when climbing. If you’re crossing a dangerous rock face you want to make sure you’ve used protection to catch you if you fall. Commits play a similar role: if you make a mistake, you can’t fall past the previous commit. Coding without commits is like free-climbing: you can travel much faster in the short-term, but in the long-term the chances of catastrophic failure are high! Like rock climbing protection, you want to be judicious in your use of commits. Committing too frequently will slow your progress; use more commits when you’re in uncertain or dangerous territory. Commits are also helpful to others, because they show your journey, not just the destination."
git init

$ git init; $ ls -la; navigate to $ cd .git; navigate back $ cd ..Create and edit a toy code script (foxy.R)
$ git diff$ git diff --cached
R CMD BATCH foxy.R or Rscript foxy.R
.gitignoreCommit the .gitignore and your changed code file
When you have an existing folder with existing projects
GitRgit clone commandInitializing a new folder for a new project

pch=...) or plotting library (ggplot2 for instance).EEB504 organization: https://github.com/EEB504$git push to share your changes with the group; $ git fetch to pull in changes, and $ git merge to combine the different pieces of code across the collaborators in each group..html and related files housed in a gh-pages or docs directory
master, but that is quite messydocsMischiefManaged, select R .gitignoredocs foldermkdir docs; touch _site.yml; touch index.Rmd; touch about.Rmdatom _site.yml
name: "Padfoots-website"
output_dir: "."
navbar:
title: "Padfoot's Website (Mischief Managed)"
left:
- text: "Home"
href: index.html **this must have the same filename as your .Rmd file**
- text: "About Me"
href: about.html
atom index.Rmd
--- title: "Padfoot's Website (Mischief Managed)" --- Hello, World!
atom about.Rmd
--- title: "All about Padfoot" --- Marauder's Map
$ touch build_site.R
git add A
git add ALL; use this only when necessarygit commit -m "First website version"git push -u origin masterFor future reference
git add foxy.R)